import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:oramemo/pages/transcription/transcription_router.dart';
import 'package:oramemo/widget/gradient_app_head.dart';
import 'package:oramemo/widget/gradient_background.dart';
import '../controllers/chat_controller.dart';
import '../widgets/chat_input.dart';
import '../widgets/chat_messages.dart';

class ChatScreen extends StatelessWidget {
  const ChatScreen({super.key});

  @override
  Widget build(BuildContext context) {
    final controller = Get.put(ChatController());

    return  Scaffold(
      body: Column(
        children: [
          GradientAppHead(
              title: '录音转写',
              actions: TextButton(
                onPressed: () =>
                    Get.toNamed(TranscriptionRouter.transcriptionDetails ,arguments: controller.argId),
                child: const Text(
                  '修改',
                  style: TextStyle(
                    color: Colors.black,
                    fontSize: 16,
                  ),
                ),
              )
          ),
          Expanded(child: GradientBackground(child: ChatMessages())),
          // ChatInput(),
        ],
      ),
    );
  }
}
